package com.study.lxy.javaio;

import java.io.File;

public class CreateFile {

    public static void main(String[] args) throws Exception {
        File file = new File("D:/newcreate.txt");
        if(!file.exists()){
            boolean newFile = file.createNewFile();
        }

    }

}
